import 'package:boss/textStyle/text_style.dart';
import 'package:flutter/material.dart';

class LabelButton extends StatelessWidget {
  final String title;
  final VoidCallback onTap;
  final TextStyle textStyle;
  final EdgeInsets padding;

  const LabelButton({
    Key key,
    @required this.title,
    this.onTap,
    this.textStyle,
    this.padding = EdgeInsets.zero,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: onTap,
      behavior: HitTestBehavior.translucent,
      child: Padding(
        padding: padding,
        child: Text(title, style: textStyle ?? TextStyleConstant().origin_28),
      ),
    );
  }
}
